
# Application
add_executable(app_test 
    main.cpp
    TestApp.h
    TestApp.cpp)

target_link_libraries(app_test PRIVATE Selah)

set_target_properties(app_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${SELAH_RUNTIME_OUTPUT_DIRECTORY})

# Create a Falcor application and link the main Falcor library.
# function(add_falcor_executable target)
#     add_executable(${target})

#     target_link_libraries(${target} PRIVATE Falcor)

#     set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${FALCOR_RUNTIME_OUTPUT_DIRECTORY})

#     set_target_properties(${target} PROPERTIES VS_DEBUGGER_ENVIRONMENT "FALCOR_DEVMODE=1")
# endfunction()

add_custom_command(
  TARGET app_test
  POST_BUILD
  COMMAND ${CMAKE_COMMAND} -E copy_directory
    "${CMAKE_CURRENT_SOURCE_DIR}/Shaders"
    "$<TARGET_FILE_DIR:app_test>/Shaders"
  COMMENT "Copying Shaders folder to output directory"
)